package team.seekers.hula.teamwork.todo.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@Data
public class TodoMeAddPA {

    /*todo标题*/
    @NotBlank(message = "待办标题不能为空")
    @Size(max = 50, message = "标题长度不能超过50")
    private String title;

    /*todo截止时间*/
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date gmtEnd;

    private String detail;

    private List<String> tagIds;

    private Integer isToday;
}
